function [ ] = plotDeformation( domain2D, rx, ry, bx, by, dx, dy )
%PLOTDEFORMATION Summary of this function goes here
%   Detailed explanation goes here

bn = size(domain2D.x', 1);

cons = zeros(bn, 2);
cons(:, 1) = [1:bn];
cons(:, 2) = [[2:bn]'; 1];

px = [domain2D.x'; rx];
py = [domain2D.y'; ry];

bx = bx * 0;
by = by * 0;

fx = [bx; dx];
fy = [by; dy];

% fx = fx * 0;
% fy = fy * 0;

px = px + fx;
py = py + fy;

n = size(px, 1);

figure;

dt = DelaunayTri(px,py,cons);
io = dt.inOutStatus();
tri = dt(io, :);

trisurf(tri, px, py, zeros(n, 1));

view(2);

axis ( [ -1, 1, -1, 1] );
% caxis( [ 0.85, 1.15] );
axis square;

colorbar;

end

